package com.ruoyi.workbench.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工作任务对象 work_task
 * 
 * @author Guojl
 * @date 2024-07-05
 */
public class WorkTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 任务目标 */
    @Excel(name = "任务目标")
    private String taskContent;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskCompleteDate;

    /** 任务来源（1：年度考核 2：领导指派） */
    @Excel(name = "任务来源", readConverterExp = "1=：年度考核,2=：领导指派")
    private String taskFrom;

    /** 任务状态（1：待派发 2：待认领 3：进行中 4：已完成 5：已中止） */
    @Excel(name = "任务状态", readConverterExp = "1=：待派发,2=：待认领,3=：进行中,4=：已完成,5=：已中止")
    private String taskStatus;

    /** 接收人ID */
    @Excel(name = "接收人ID")
    private Long recipientId;

    /** 接收人姓名 */
    @Excel(name = "接收人姓名")
    private String recipientName;

    /** 关联人姓名 */
    @Excel(name = "关联人姓名")
    private String associationName;

    public void setTaskId(Integer taskId) 
    {
        this.taskId = taskId;
    }

    public Integer getTaskId() 
    {
        return taskId;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setTaskContent(String taskContent) 
    {
        this.taskContent = taskContent;
    }

    public String getTaskContent() 
    {
        return taskContent;
    }
    public void setTaskCompleteDate(Date taskCompleteDate) 
    {
        this.taskCompleteDate = taskCompleteDate;
    }

    public Date getTaskCompleteDate() 
    {
        return taskCompleteDate;
    }
    public void setTaskFrom(String taskFrom) 
    {
        this.taskFrom = taskFrom;
    }

    public String getTaskFrom() 
    {
        return taskFrom;
    }
    public void setTaskStatus(String taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() 
    {
        return taskStatus;
    }
    public void setRecipientId(Long recipientId) 
    {
        this.recipientId = recipientId;
    }

    public Long getRecipientId() 
    {
        return recipientId;
    }
    public void setRecipientName(String recipientName) 
    {
        this.recipientName = recipientName;
    }

    public String getRecipientName() 
    {
        return recipientName;
    }
    public void setAssociationName(String associationName) 
    {
        this.associationName = associationName;
    }

    public String getAssociationName() 
    {
        return associationName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("taskContent", getTaskContent())
            .append("taskCompleteDate", getTaskCompleteDate())
            .append("taskFrom", getTaskFrom())
            .append("taskStatus", getTaskStatus())
            .append("recipientId", getRecipientId())
            .append("recipientName", getRecipientName())
            .append("associationName", getAssociationName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
